<template>
  <div class="card">
    <el-card>
      <template #header>
        <div class="title">{{ title }}</div>
      </template>
      <slot></slot>
    </el-card>
  </div>
</template>

<script lang="ts">
import { defineComponent } from 'vue'

export default defineComponent({
  props: {
    title: {
      type: String,
      default: '头部'
    }
  },
  setup() {
    return {}
  }
})
</script>
<style scoped lang="less">
.card {
  text-align: left;
  .title {
    font-weight: 700;
  }
}
</style>
